<?php
// +----------------------------------------------------------------------
// | sfadmin - Suifeng Administration
// +----------------------------------------------------------------------
// | Copyright (c) 2017~2020 http://suifeng.tech All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: suifeng <1787585212@qq.com>
// +----------------------------------------------------------------------

namespace suifeng\builder\form\control;

use suifeng\builder\form\Control;

class Hidden extends Text
{
    /**
     * 构造方法。
     *
     * @param array $config
     */
    public function __construct($name, $config = array())
    {
        parent::__construct($name, $config);
        $this->attributes['type'] = 'hidden';
        unset($this->attributes['class']);
    }
}